package com.bootstarp.base;

import com.eureka.listener.EurekaServerStateChangeListener;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.Import;

@Import(EurekaServerStateChangeListener.class)
@EnableEurekaServer
@SpringBootApplication
public class EurekaServerApplication {

    public static void main(String[] args){

        new SpringApplicationBuilder(EurekaServerApplication.class).web(true).run(args);

    }

}
